package com.example.demo.redis.controller;

import com.example.demo.model.Material;
import com.example.demo.redis.service.RedisService;
import com.example.demo.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by 86151 on 2018/12/26.
 */
@RestController
public class RedisController {
    @Autowired
    private RedisService redisService;

    @GetMapping("testRedis1")
    public Result<List<Material>> testRedis(){
        return redisService.testRedis();
    }

}
